<?php
if (isset($_GET['id']))
{
	require("connection_mysql.inc.php");
	$donnees = mysql_query("SELECT section.id, section.nom from section where visible = 1 AND idComposante=".$_GET['id']." order by nom");
	echo '<option value="-1">Choisissez votre section</option>';
	
	while ($result = mysql_fetch_array($donnees))
	{
		echo "<option value=\"".$result['id']."\" ";
		echo " >".$result['nom']."</option>";
	}
	mysql_close();
}
?>